package com.example.work.util;

import com.alibaba.fastjson.JSONObject;

/**
 * @Description:
 * @author: JinMu
 * @create: 2018-08-09 10:04
 * @Version: 1.0
 **/
public class ResultUtil {

    public static String getstate(String xml){

        String json = XMLUtil.xml2json(xml);
        JSONObject job = JSONObject.parseObject(json);
        String js = job.get("root").toString();
        JSONObject result = JSONObject.parseObject(js);
        String state = result.get("state").toString();
        return state;
    }
}
